import axios from './axios'

// 查信息
export function qryInfo() {
  return axios({
    url: '/qryInfo',
    method: 'post'
  })
}

// 查所有用户信息
export function findAllUser() {
  return axios({
    url: '/findAllUser',
    method: 'post'
  })
}

// 根据id删除
export function deleteUserById(userid) {
  return axios({
    url: '/deleteUserById',
    method: 'post',
    data: {
      userid: userid,
    }
  })
}



// 修改密码
export function updatePassword(oldPwd,newPwd) {
  return axios({
    url: '/updatePassword',
    method: 'post',
    data: {
      oldPwd: oldPwd,
      newPwd: newPwd
    }
  })
}

